<style>
.toUp input{
   text-transform:uppercase;
}
</style>

<div class="pageContent">
    <form method="post"
        action="${rc.getContextPath()}/manage/numberRule/saveNumberRule"
        class="pageForm required-validate"
        onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent">
            <input type="hidden" name="navTabId" value="${navTabId!''}">
            <input type="hidden" name="id"
                value="<#if (number.ruleCode)??>${number.ruleCode!''}</#if>">
            <fieldset>
                <dl>
                    <dt><@label key="ruleCode.C,colon">编码规则编号：</@label></dt>
                    <dd>
                        <input name="ruleCode"
                            value="<#if (number.ruleCode)??>${number.ruleCode!''}</#if>"
                            size="32" type="text" maxlength="40" class="required"readonly="readonly"
                        /> 
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="ruleText.C,colon">编码规则描述：</@label></dt>
                    <dd>
                        <input readonly="readonly" name="ruleText"
                            value="<#if (number.ruleText)??>${number.ruleText!''}</#if>"
                            size="32" type="text" maxlength="60" class="required" />
                    </dd>
                </dl>
                    <dl>
                    <dt><@label key="preFix.C,colon">编码规则前缀：</@label></dt>
                    <dd class="toUp">
                        <input readonly="readonly" name="preFix"
                            value="<#if (number.preFix)??>${number.preFix!''}</#if>"
                            size="32" type="text" maxlength="40"onKeyUp="value=value.replace(/[\W]/g,'')"/>
                    </dd>
                </dl>
                </dl>
                <dl>
                    <dt><@label key="ordinalLength.C,colon">编号长度：</@label></dt>
                    <dd>
                        <input readonly="readonly" class="required" name="ordinalLength"
                            value="<#if (number.ordinalLength)??>${number.ordinalLength!''}</#if>"
                            size="32" type="text" maxlength="10" onkeyup="this.value=this.value.replace(/\D/g,'');" />
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="currentOrdinal.C,colon">当前编号：</@label></dt>
                    <dd>
                        <input readonly="readonly" readonly="readonly" name="currentOrdinal"
                            value="<#if (number.currentOrdinal)??>${number.currentOrdinal!''}</#if>"
                            size="32" type="text" maxlength="60"/>
                    </dd>
                </dl>
                <dl>
                    <dt>&nbsp;</dt>
                    <dd>
                    <label><input disabled type="checkbox" name="enableDateFlag" value="1"<#if
                            (number.enableDateFlag)?? && (number.enableDateFlag == 1)>
                            checked="true"</#if>><@label key="enableDateFlag.C">是否启用日期</@label></label>
                    </dd>
                </dl>
            </fieldset>
        </div>
            <#if (number.ruleCode)??> 
            <#assign createInfo=number/>
            <#include "/common/createInfo.html">
        </#if>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="button" class="close"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div></li>
            </ul>
        </div>
    </form>
</div>
